package com.quanyan.authority.service.impl;

import com.quanyan.authority.mapper.AuthorityFunctionMapper;
import com.quanyan.authority.model.db.TbAuthorityFunction;
import com.quanyan.authority.service.AuthorityFunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by  on 2016/8/1.
 */
@Service
public class AuthorityFunctionServiceImpl implements AuthorityFunctionService {

    @Autowired
    private AuthorityFunctionMapper authorityFunctionMapper;
    @Override
    public void batchAddAuthorityFunction(List<TbAuthorityFunction> lst) {
        authorityFunctionMapper.batchAdd(lst);
    }

    @Override
    public void batchDelAuthorityFunction(List<TbAuthorityFunction> ids) {
        authorityFunctionMapper.batchDelete(ids);
    }
}

